#ifndef P_RANGE_SET_H
#define P_RANGE_SET_H

#include <QMainWindow>
#include <global_variable.h>

class P_Range_Set : public QMainWindow
{
    Q_OBJECT
public:
    explicit P_Range_Set(QWidget *parent = 0);
    bool eventFilter(QObject *watched, QEvent *event);
    void ui_Label_Init();
    void ui_Btn_Init();
    void connect_Init();
    void time_Init();
    int pos=0;
    int totalBtn =8;
    QTimer  *timer;
    QTimer  *timer2;
    QString str_show;
    bool show_flag=0;
    bool change_flag=0;  //1代表修改数据模式  0代表按键控制模式
    int elec_flag=0;//只是代表电磁阀的种类，用来切换电磁阀
    QPushButton *theBtn[8];
    QLabel *theLabel[10];
    void  Recive_Gas_SelData(QString ) ; //第三行的数据
    QList <QPushButton * >btnlist_ui;
    int flag=2;
    float number[9]={0.1,0.2,0.5,1,2,5,0,0,0};
    void reciveDensity();
    void reciveDensity2();
signals:

public slots:
};

#endif // P_RANGE_SET_H
